package com.lijianpo.util.extension.datamasking.strategy;

import com.lijianpo.util.extension.datamasking.MaskStrategy;
import com.lijianpo.util.extension.datamasking.util.AesUtil;

/**
 * ase 加密 脱敏
 * @author zhangyang
 * @Date 2021/11/24 10:36
 */
public class AesMask implements MaskStrategy {
    /**
     * 脱敏
     *
     * @param source
     * @param params
     * @return
     */
    @Override
    public String mask(String source, int[] params) {
        if (source == null || source.isEmpty()) {
            return source;
        }
        return AesUtil.encrypt(source);
    }
}

